// @ts-ignore
/* eslint-disable */

/**
 * 请勿随意修改。
 * */

import { request, type RequestOptions } from '@/utils/request'


/** 数智人列表 GET /meereen/human/list */
export async function virtualList(params: API.VirtualParams, options?: RequestOptions) {
  return request(`/meereen/human/list`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 选择抖音号列表 GET /meereen/human/addMeereenDigitalHumanEcho */
export async function virtualEchoHuman(params: API.VirtualDockerParams, options?: RequestOptions) {
  return request(`/meereen/human/addMeereenDigitalHumanEcho`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 新增医生数字人形象 GET /meereen/human/addMeereenDigitalHuman */
export async function virtualAddHuman(body, options?: RequestOptions) {
  return request(`/meereen/human/addMeereenDigitalHuman`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 修改医生数字人形象 POST /meereen/human/updateMeereenDigitalHuman */
export async function virtualEditHuman(body, options?: RequestOptions) {
  return request(`/meereen/human/updateMeereenDigitalHuman`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 上线总数量 GET /meereen/human/getOnlineNumber */
export async function virtualTotal(params, options?: RequestOptions) {
  return request(`/meereen/human/getOnlineNumber`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 创建视频制作任务(meereen:createVideo:createTask) POST /meereen/createVideo/createTask */
export async function virtualCreateTask(body, options?: RequestOptions) {
  return request(`/meereen/createVideo/createTask`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 获取数字人制作任务(meereen:createVideo:getTask) GET /meereen/createVideo/getHumanTask */
export async function virtualHumanTask(params, options?: RequestOptions) {
  return request(`/meereen/createVideo/getHumanTask`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 查询音色复刻列表 GET /meereen/reproduction/list */
export async function virtualReproductionList(params, options?: RequestOptions) {
  return request(`/meereen/reproduction/list`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {
      isReturnResult: false
    })
  })
}

/** 录制医生列表  */
export async function virtualDoctorList(params, options?: RequestOptions) {
  return request(`/meereen/video/selectDoctorEcho`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {
      isReturnResult: true
    })
  })
}


/** 新增音色复刻 POST  /meereen/reproduction/newTimbre  */
export async function virtualNewTimbre(body, options?: RequestOptions) {
  return request(`/meereen/reproduction/newTimbre`, {
    method: 'POST',
    data: body,
    ...(options || {
      isReturnResult: false,
      requestType: 'form'
    })
  })
}

/** 修改音色复刻 PUT /meereen/reproduction  */
export async function virtualEditTimbre(body, options?: RequestOptions) {
  return request(`/meereen/reproduction`, {
    method: 'PUT',
    data: body,
    ...(options || {
      isReturnResult: false,
      requestType: 'json'
    })
  })
}



/** 审核 POST  /meereen/reproduction/auditTimbreReproduction  */
export async function virtualAuditRep(body, options?: RequestOptions) {
  return request(`/meereen/reproduction/auditTimbreReproduction`, {
    method: 'POST',
    data: body,
    ...(options || {
      isReturnResult: false
    })
  })
}




/** 音色训练音频下载成功接口 GET /meereen/reproduction/downloadSuccess  */
export async function virtualDownLoadSuccess(params, options?: RequestOptions) {
  return request(`/meereen/reproduction/downloadSuccess`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {
      isReturnResult: false
    })
  })
}



/** 医生回显列表 GET /system/user/getUserDropdownSelectionResult  */
export async function virtualEchoDoctorList(params, options?: RequestOptions) {
  return request(`/system/user/getUserDropdownSelectionResult`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {
      isReturnResult: true
    })
  })
}

